#define _CRT_SECURE_NO_WARNINGS  1

#include<stdio.h>
#include<string.h>

int main()
{
	int n = 0;
	char arr[] = "abcdef";
	char arr2[100] = "0";
	int len = strlen(arr);
	scanf("%d", &n);
	int m = n;
	int i = 0;
	int j = 1;
	for (i = 0; i < len-m; i++)
	{
		arr2[i] = arr[n];
		n++;
	}
	n = m;
	for (i = 0; i <  m; i++)
	{
		arr2[len-n] = arr[i];
		n--;
	}
	for (i = 0; i < len; i++)
	{
		printf("%c ",arr2[i]);
	}
	return 0;
}